package com.snow.it.common.statemachine.yarn.conf;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;


public class YarnConfiguration implements Iterable<Map.Entry<String, String>>, Writable {

	public static final String DISPATCHER_DRAIN_EVENTS_TIMEOUT = "DISPATCHER_DRAIN_EVENTS_TIMEOUT";
	public static final Long DEFAULT_DISPATCHER_DRAIN_EVENTS_TIMEOUT = 60000l;
	public static final String DISPATCHER_EXIT_ON_ERROR_KEY = "DISPATCHER_EXIT_ON_ERROR_KEY";
	public static final Boolean DEFAULT_DISPATCHER_EXIT_ON_ERROR = false;

	@Override
	public void write(DataOutput out) throws IOException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void readFields(DataInput in) throws IOException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Iterator<Entry<String, String>> iterator() {
		// TODO Auto-generated method stub
		return null;
	}

  public boolean getBoolean(String name, boolean defaultValue) {
	  return defaultValue;
  }
  
  public long getLong(String name, long defaultValue) {
	  return defaultValue;
  }


}
